import '@/styles/globals.css'
import type { AppProps } from 'next/app'

//全局加一些组件
const Header = () => {
  return (
    <h1 style={{color:'tomato',textAlign:'center'}}>Footer</h1>
  )
}

const Footer = () => {
  return (
    <h1 style={{color:'blue',textAlign:'center'}}>Footer</h1>
  )
}

export default function App({ Component, pageProps }: AppProps) {
  return <>
    <Header/>
    <Component {...pageProps} />
    <Footer />
  </>
}
